package com.zy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zy.pojo.Role;
import com.zy.vo.PageAto;
import com.zy.vo.RoleVo;

import java.util.List;

public interface RoleService extends IService<Role> {
    public List<Role> getRoleList(RoleVo roleVo);
    //分页
    PageAto getPageRoleList(Integer pageNo, Integer pageSize, RoleVo roleVo);
    //根据用户名查询
    Role getRoleUsername(String username);
    public Role getRoleId(Integer id);
    public void add(Role role);
    public void update(Role role);
    public void delete(Integer id);
}
